package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "t_cms_schedprogram")
public class TCmsSchedprogram implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3224624910973578465L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", length = 20, nullable = false, unique = true)
	private Long id;
	
	@Column(name = "CODE", length = 64, nullable = true)
	private String code;
	
	@Column(name = "NAME", length = 128, nullable = true)
	private String name;
	
	@Column(name = "SCHEDULE_CODE", length = 64, nullable = true)
	private String scheduleCode;
	
	@Column(name = "SERIES_FLAG", length = 2, nullable = true)
	private Integer seriesFlag;
	
	@Column(name = "ORIGINAL_CODE", length = 64, nullable = true)
	private String originalCode;

	@Column(name = "SEQUENCE", length = 11, nullable = true)
	private Integer sequence;

	@Column(name = "SERIE_NO", length = 128, nullable = true)
	private Integer serieNo;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ONLINE_TIME", nullable = true)
	private Date onlineTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "OFFLINE_TIME", nullable = true)
	private Date offlineTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", nullable = true)
	private Date createTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", nullable = true)
	private Date updateTime;

	@Column(name = "STATUS", length = 2, nullable = true)
	private Integer status;
	
	@Column(name = "DURATION", length = 20, nullable = true)
	private Long duration;//时长
	
	@Column(name = "CP_CODE", length = 20, nullable = true)
	private Long cpCode;
	
	@Column(name = "START_PLAY_TIME", length = 64, nullable = true)
	private String startPlayTime;
	
	@Column(name = "END_PLAY_TIME", length = 64, nullable = true)
	private String endPlayTime;
	
	@Column(name = "END_PLAY_NUM", length = 20, nullable = true)
	private Long endPlayNum;
	
	@Column(name = "SERIES_CODE", length = 64, nullable = true)
	private String seriesCode;
	
	@Column(name = "PLAY_URL", length = 64, nullable = true)
	private String playUrl;
}
